/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.tb_certificate_vehicles.entity;

import org.hibernate.validator.constraints.Length;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.modules.sys.entity.SysIndirectInt;
import com.thinkgem.jeesite.modules.tb_car_info.entity.TbCarInfo;

/**
 * 车辆证件审核时间表Entity
 * @author ZhaoHai
 * @version 2017-07-06
 */
public class TbCertificateVehicles extends DataEntity<TbCertificateVehicles> {
	
	private static final long serialVersionUID = 1L;
	private String carNum;		// 车辆编码（内部码，用于检索，模糊查询，唯一）
	private String dataType;		// 需审核检验的项目类型【1】运营证【2】行驶证【3】罐体【4】GPS【5】交强险【6】商业险【7】承运险【8】灭火器
	private Date certificatesDate;		// 下次审核/检验的时间
	private long timedifferences;      //证件检验日期和当前时间差的
	private SysIndirectInt sysIndirectInt;    //公共属性（int类型的属性）使用的表
	private String carCode;  //车辆车牌号
	private TbCarInfo tbCarInfo;//车	
	public TbCarInfo getTbCarInfo() {
		return tbCarInfo;
	}

	public void setTbCarInfo(TbCarInfo tbCarInfo) {
		this.tbCarInfo = tbCarInfo;
	}

	public String getCarCode() {
		return carCode;
	}

	public void setCarCode(String carCode) {
		this.carCode = carCode;
	}

	public long getTimedifferences() {
		return timedifferences;
	}

	public void setTimedifferences(long timedifferences) {
		this.timedifferences = timedifferences;
	}

	public SysIndirectInt getSysIndirectInt() {
		return sysIndirectInt;
	}

	public void setSysIndirectInt(SysIndirectInt sysIndirectInt) {
		this.sysIndirectInt = sysIndirectInt;
	}

	public TbCertificateVehicles() {
		super();
	}

	public TbCertificateVehicles(String id){
		super(id);
	}

	@Length(min=0, max=40, message="车辆编码（内部码，用于检索，模糊查询，唯一）长度必须介于 0 和 40 之间")
	public String getCarNum() {
		return carNum;
	}

	public void setCarNum(String carNum) {
		this.carNum = carNum;
	}
	
	public String getDataType() {
		return dataType;
	}

	public void setDataType(String dataType) {
		this.dataType = dataType;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getCertificatesDate() {
		return certificatesDate;
	}

	public void setCertificatesDate(Date certificatesDate) {
		this.certificatesDate = certificatesDate;
	}
	
}